package com.zr.util;

import lombok.Data;

import java.util.List;

/**
 * 封装的查询结果类
 * 
 * @author 10710
 *
 * @param <T>
 */
@Data
public class AllRecordsVo<T> {
	private Integer pageIndex;// 当前页
	private Integer pageSize;
	private Integer pageTotal; // 总页数
	private Integer countTotal; // 当前条件下的总数量
	private List<T> data;

	public Integer getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(Integer pageIndex) {
		this.pageIndex = pageIndex;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getPageTotal() {
		return pageTotal;
	}

	public void setPageTotal(Integer pageTotal) {
		this.pageTotal = pageTotal;
	}

	public Integer getCountTotal() {
		return countTotal;
	}

	public void setCountTotal(Integer countTotal) {
		this.countTotal = countTotal;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}
}
